package com.sm.bo;

import android.os.Parcel;
import android.os.Parcelable;

public class Course implements Parcelable{

	private String code = "";
	private String wording = "";
	boolean selected = false;

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getWording() {
		return wording;
	}

	public void setWording(String wording) {
		this.wording = wording;
	}

	public Course(String code, String wording) {
		super();
		this.code = code;
		this.wording = wording;
	}
	
	public Course(Parcel in) {
		this.code = in.readString();
		this.wording = in.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(code);
		dest.writeString(wording);
	}
	
	public static final Parcelable.Creator<Course> CREATOR = new Parcelable.Creator<Course>()
	{
		@Override
		public Course createFromParcel(Parcel source)
		{
			return new Course(source);
		}

		@Override
		public Course[] newArray(int size)
		{
			return new Course[size];
		}
	};
}
